package Bit;

public class Dog extends Animal{
    public Dog(){};
    public Dog(String name,int age)
    {
        this.name=name;
        this.age=age;
    }
    public void eat(String food)
    {
        System.out.println("狗狗"+this.name+food);
    }
    public Animal func() {
        return new Animal();
    }
}
